package com.ocom.netty.mj.controller;


import com.ocom.netty.mj.service.CompanyService;
import com.ocom.netty.mj.service.MachTcpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    MachTcpService machTcpService;

    @Autowired
    CompanyService companyService;

    @GetMapping("/test")
    public int test() throws Exception {
        System.out.println(companyService.getCompanyId("21120004"));
//        DataAcceptHandler.sendMessage("21120004",null);
        return 123;

    }
}
